<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUploadTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('upload', function (Blueprint $table) {
            $table->id();
            $table->timestamps();
            $table->string('file', 256)->nullable();
            $table->string('email', 128)->nullable();
            $table->string('path', 512)->nullable();
            $table->integer('status')->nullable();
            $table->char('md5', 32)->nullable();
            $table->string('file_describe', 512)->nullable();
            $table->string('save_path', 512)->nullable();
            $table->string('operater_id')->nullable();
            $table->string('message', 512)->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('upload');
    }
}
